#!usr/bin/python
# -*- coding: UTF-8 -*-
import os
import time

'''
https://fishc.com.cn/forum.php?mod=viewthread&tid=45512&extra=page%3D1%26filter%3Dtypeid%26typeid%3D403
'''
print(os.getcwd())

print(os.chdir('F:\\'))
print(os.getcwd())
print(os.listdir())

#print(os.mkdir('F:\\A\\B\\')) #创建单层目录
#print(os.remove('F:\\A\\B\\2.txt'))
#print(os.rmdir('F:\\A\\B'))
#print(os.system('cmd')) #没成功
print(os.system('calc'))
print(os.curdir)
print(os.listdir(os.curdir))
print(os.path.basename('F:\\A\\B\\2.txt'))
print(os.path.dirname('F:\\A\\B\\2.txt'))
print(os.path.dirname('F:\\A\\B\\2.txt'))
print(os.path.split('F:\\A\\B\\NV.avi'))
print(os.path.splitext('F:\\A\\B\\NV.avi'))
print(os.path.getatime('F:\\A\\B\\NV.avi'))
print(time.localtime(os.path.getatime('F:\\A\\B\\NV.avi')))
print(time.localtime(os.path.getmtime('F:\\A\\B\\NV.avi')))
print(os.path.join('A', 'B', 'C'))
print(os.path.join('C:\\', 'A', 'B', 'C'))
exit;




